package main

import (
	"fmt"
	"github.com/cloudwego/hertz/pkg/app/server"
	"monthly/biz/dal/global"
	_ "monthly/biz/dal/inits"
	"monthly/biz/router"
)

func main() {
	hertzClient := &global.AppConf.System
	h := server.Default(server.WithHostPorts(fmt.Sprintf("%v:%v", hertzClient.Host, hertzClient.Port)))
	router.Router(h)

	h.Spin()
}
